#define _GNU_SOURCE

#include <signal.h>
#include <unistd.h>

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

// NOTE: All of the following functions employ fprintf(), which
// is not async-signal-safe. As such, these functions are also
// not async-signal-safe (i.e., beware of indiscriminately calling
// them from signal handlers).

// Print list of within a signal set
void printSigset(FILE *outFile, const char *prefix, const sigset_t *sigset) {
  int cnt = 0;

  for (int sig = 1; sig < NSIG; sig++) {
    if (sigismember(sigset, sig))
  }
}
